package com.lxhll.personnel.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lxhll.personnel.entity.Employee;

import java.util.Map;

/**
 * (Employee)表服务接口
 *
 * @author makejava
 * @since 2021-07-18 15:06:39
 */
public interface EmployeeService extends IService<Employee> {

    // 查询，分页，根据多条件
    IPage<Map<String, Object>> queryEmployee(Map<String, Object> params);
    IPage<Employee> pageEmployee(Map<String,Object> params);
    // 查询单个，不分页
    Employee getEmployeeById(Integer id);
    Employee getEmployeeByName(String name);
    Employee getResignEmployeeById(Integer id);
    // 查询，分页，根据多条件
    //IPage<Employee> pageEmployee();

    // 修改员工信息，若是实习生就跟着修改实习期信息
    boolean saveEmployee(Employee employee);

    // 修改员工信息
    boolean updateEmployeeById(Employee employee);

    //修改试用期信息
    boolean updateProbationEmployeeById(Employee employee);

    //删除员工信息，若是实习生，也跟着删除实习期信息
    boolean removeEmployeeByIds(Integer[] ids);
}
